/**
 * Created by mac on 2018/8/30.
 */
import { ADD_ITEM , CHANGE_INPUT_VALUE, DELETE_ITEM } from './actionTypes';

export const addItemAction = () => ({
    type: ADD_ITEM
})


export const changeInputValue = (value) => ({
    type: CHANGE_INPUT_VALUE,
    value: value
})

export const deleteItem = (index) => ({
    type: DELETE_ITEM,
    value: index
})